projects
/
project
/
firmware-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a375e7
)
add support for the Pirelli AG226G board (#5337)
author
Florian Fainelli
<
[email protected]
>
Sun, 9 Aug 2009 10:19:47 +0000
(10:19 +0000)
committer
Florian Fainelli
<
[email protected]
>
Sun, 9 Aug 2009 10:19:47 +0000
(10:19 +0000)
SVN-Revision: 17190
src/imagetag.c
patch
|
blob
|
history
diff --git
a/src/imagetag.c
b/src/imagetag.c
index bd62b203390cb221d3759e30cd7504c039c9e948..e93f5f45e8081e59ea9d778a972fe1bb779bcc28 100644
(file)
--- a/
src/imagetag.c
+++ b/
src/imagetag.c
@@
-219,6
+219,10
@@
int tagfile(const char *kernel, const char *rootfs, const char *bin,
fseek(binfile, rootfsoff + rootfslen - fwaddr, SEEK_SET);
fwrite(&deadcode, sizeof(uint32_t), 1, binfile);
+ /* Flush the binfile buffer so that when we read from file, it contains
+ * everything in the buffer
+ */
+ fflush(binfile);
/* Choose and compute the CRC32 that should be inserted in the tag */
if ( tagid && ( (strncmp(tagid, "bccfe", TAGID_LEN) == 0)) || ( strncmp(tagid, "bc300", TAGID_LEN) == 0)) {